package sqlexplorer.domain.metadata;


public class TableMetaData {
	
	private String m_name;
	private String m_type;
	private ColumnMetaData[] m_columns;
	
	public TableMetaData(String name,String type,ColumnMetaData[] columns){
		m_name=name;
		m_type=type;
		m_columns=columns;
	}
	
	public int getNumberOfColumns(){
		if(m_columns!=null){
			return m_columns.length;
		}else{
			return 0;
		}
	}
	
	public String getTableName(){
		return m_name;
	}
	
	public String getTableType(){
		return m_type;
	}
	
	public ColumnMetaData[] getColumns(){
		return m_columns;
	}
}
